package com.ftg.product.exam.vo;

import com.diboot.core.binding.annotation.*;
import com.ftg.product.exam.entity.PaperAnswer;
import com.ftg.product.exam.entity.BaseStudent;
import com.ftg.product.exam.entity.PaperBasedetail;
import com.ftg.product.exam.entity.PaperBase;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

/**
* 记录，当前试卷学生答题情况 ，用于汇总所有的答题记录。暂时先不考虑，练习的情况，二期再考虑 DetailVO定义
* @author kangjx
* @version 1.0
* @date 2021-01-14
 * Copyright © ftg
*/
@Getter @Setter @Accessors(chain = true)
public class PaperAnswerDetailVO extends PaperAnswer  {
    private static final long serialVersionUID = 9044591518837098736L;

    /**
    * 关联字段：BaseStudent.stuname
    */
    @BindField(entity = BaseStudent.class, field = "stuname", condition = "this.empcode=id")
    private String empcodeStuname;

    /**
    * 关联对象: PaperBasedetail
    */
    @BindEntity(entity = PaperBasedetail.class, condition = "this.paperdetailcode=id")
    private Long paperdetailcode;

    /**
    * 关联字段：PaperBase.title
    */
    @BindField(entity = PaperBase.class, field = "title", condition = "this.papercode=id")
    private String papercodeTitle;

}